package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

/**
 * 会员价格表
 */
@Data
@TableName(value = "sm_member_price")
public class SmMemberPrice {

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/** 排序 */
	@TableField(value = "sort")
	private Integer sort;
	/** 购买时长 */
	@TableField(value = "buy_months")
	private Integer buyMonths;
	/** 赠送时长 */
	@TableField(value = "give_months")
	private Integer giveMonths;
	/** 折扣 */
	@TableField(value = "rate")
	private Integer rate;
	/** 划掉价格 */
	@TableField(value = "price_old")
	private Integer priceOld;
	/** 真正价格 */
	@TableField(value = "price_now")
	private Integer priceNow;
	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;
	/** iOS code码 */
	@TableField(value = "ios_code")
	private String iosCode;
	/** 划掉价格（人民币） */
	@TableField(value = "price_old_rmb")
	private BigDecimal priceOldRMB;
	/** 真实价格（人民币） */
	@TableField(value = "price_now_rmb")
	private BigDecimal priceNowRMB;
	/** 赠送打印次数 */
	@TableField(value = "give_print_count")
	private Integer givePrintCount;
	/** 版本 */
	@TableField(value = "version")
	private String version;
	/** 首次价格 */
	private String firstPrice;
	/** 每天需要金额 */
	private BigDecimal dayPrice;
	/** 用户选择 */
	private BigDecimal userCheck;
	/** 扣费周期 */
	private String agreementPeriodType;
	/** 扣费时长 配合扣费周期使用 DAY的时候此参数最小为 7 */
	private int agreementPeriod;
	/** 扣费次数 */
	private int agreementTotalPayments;

	public static final String COL_ID = "id";

	public static final String COL_SORT = "sort";

	public static final String COL_BUY_MONTHS = "buy_months";

	public static final String COL_GIVE_MONTHS = "give_months";

	public static final String COL_RATE = "rate";

	public static final String COL_PRICE_OLD = "price_old";

	public static final String COL_PRICE_NOW = "price_now";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_IOS_CODE = "ios_code";

	public static final String COL_PRICE_OLD_RMB = "price_old_rmb";

	public static final String COL_PRICE_NOW_RMB = "price_now_rmb";
}